import { IsNotEmpty, MinLength } from 'class-validator';
import { LoginDto } from './login.dto';

export class RegisterDto extends LoginDto {

  @MinLength(6, {
    message: '验证码不能不少于6位',
  })
  @IsNotEmpty({
    message: '验证码不能为空',
  })
  captcha: string;

  @IsNotEmpty({
    message: '重复密码不能为空',
  })
  @MinLength(6, {
    message: '重复密码不能不少于6位',
  })
  confirmPassword: string;
}


